package com.hall.weaponenhancement.aggr;

import dml.accounting.aggr.Account;
import dml.accounting.aggr.AccountTrader;

public class GoldAccount implements Account {

	private long id;

	private AccountTrader trader;

	private long playerId;

	private int owner;// 0系统，1用户

	public GoldAccount() {
	}

	public GoldAccount(long id, String balance) {
		this.id = id;
		this.trader = new AccountTrader(balance);
	}

	@Override
	public Object getId() {
		return id;
	}

	@Override
	public AccountTrader getTrader() {
		return trader;
	}

	public long getPlayerId() {
		return playerId;
	}

	public void setPlayerId(long playerId) {
		this.playerId = playerId;
	}

	public int getOwner() {
		return owner;
	}

	public void setOwner(int owner) {
		this.owner = owner;
	}

}
